import request from '@/utils/request'
/** ****************************会员管理*******************************************/
export function getMemberList(data) {
  return request({
    url: '/v1/member?current=' + data.current + '&size=' + data.size + data.url,
    method: 'GET'
  })
}
export function getVipMessage() {
  return request({
    url: '/v1/member/getVipMessage',
    method: 'GET'
  })
}
export function getVipMessage1(data) {
  return request({
    url: '/v1/member/getVipMessage1?shopId=' + data,
    method: 'GET'
  })
}
export function addMemberList(data) {
  return request({
    url: '/v1/member',
    method: 'POST',
    data: data
  })
}
export function editorMemberList(data) {
  return request({
    url: '/v1/member',
    method: 'PUT',
    data: data
  })
}
export function delMemberList(data) {
  return request({
    url: '/v1/member',
    method: 'DELETE',
    data: data
  })
}
export function selectMemberVipByID(data) {
  return request({
    url: '/v1/membervip/' + data,
    method: 'GET'
  })
}
export function addMemberVipList(data) {
  return request({
    method: 'POST',
    url: '/v1/membervip',
    data: data
  })
}
export function getCommodity_type() {
  return request({
    method: 'GET',
    url: '/v1/newcommoditytype'
  })
}
export function getmemberCard(data) {
  return request({
    url: '/v1/memberCard?current=' + data.current + '&size=' + data.size + data.url,
    method: 'GET'
  })
}
export function getmemberCardMen(data) {
  return request({
    url: '/v1/memberCard/Men?current=' + data.current + '&size=' + data.size + data.url + '&shopId=' + data.shopId,
    method: 'GET'
  })
}
export function getmemberCardQi(data) {
  return request({
    url: '/v1/memberCard/Qi?current=' + data.current + '&size=' + data.size + data.url + '&id=' + data.id,
    method: 'GET'
  })
}
export function editorMemberCard(data) {
  return request({
    url: '/v1/memberCard',
    method: 'PUT',
    data: data
  })
}
export function addMemberCard(data) {
  return request({
    url: '/v1/memberCard',
    method: 'POST',
    data: data
  })
}
export function getmemberCat(data) {
  return request({
    url: '/v1/memberCat?current=' + data.current + '&size=' + data.size + '&nmId=' + data.url,
    method: 'GET'
  })
}
export function delMemberCat(data) {
  return request({
    url: '/v1/memberCat',
    method: 'DELETE',
    data: data
  })
}
export function moveBlakc(data) {
  return request({
    url: '/v1/memberCat/black',
    method: 'PUT',
    data: data
  })
}
export function moveWhite(data) {
  return request({
    url: '/v1/memberCat/white',
    method: 'PUT',
    data: data
  })
}
export function editorMemberCat(data) {
  return request({
    url: '/v1/memberCat/updataCat',
    method: 'POST',
    data: data
  })
}
export function insertMemberCat(data) {
  return request({
    url: '/v1/memberCat/insertCat',
    method: 'POST',
    data: data
  })
}
export function pageCat(data) {
  return request({
    url: '/v1/memberCard/pageCat?size=' + data.size + data.url,
    method: 'GET'
  })
}
export function pageMember(data) {
  return request({
    url: '/v1/member/pageCat?size=' + data.size + data.url,
    method: 'GET'
  })
}
export function pageMember1(data) {
  return request({
    url: '/v1/member/pageCat?size=' + data.size + data.url + '&shopId=' + data.shopId,
    method: 'GET'
  })
}
export function pageMember2(data) {
  return request({
    url: '/v1/member/pageCat?size=' + data.size + data.url + '&id=' + data.id,
    method: 'GET'
  })
}
export function pageCat1(data) {
  return request({
    url: '/v1/memberCard/pageCat?size=' + data.size + data.url + '&shopId=' + data.shopId,
    method: 'GET'
  })
}
export function pageCat2(data) {
  return request({
    url: '/v1/memberCard/pageCat?size=' + data.size + data.url + '&id=' + data.id,
    method: 'GET'
  })
}
export function delMemberCard(data) {
  return request({
    url: '/v1/memberCard',
    method: 'DELETE',
    data: data
  })
}
export function selectByCId(data) {
  return request({
    url: '/v1/newshop/companynameid?id=' + data,
    method: 'GET'
  })
}
export function selectByCId1() {
  return request({
    url: '/v1/newshop/companynameid',
    method: 'GET'
  })
}
export function getmemberMen(data) {
  return request({
    url: '/v1/member/Men?current=' + data.current + '&size=' + data.size + data.url + '&shopId=' + data.shopId,
    method: 'GET'
  })
}
export function getmemberQi(data) {
  return request({
    url: '/v1/member/Qi?current=' + data.current + '&size=' + data.size + data.url + '&id=' + data.id,
    method: 'GET'
  })
}
export function upcountAndMoney() {
  return request({
    url: '/v1/member/upcountAndMoney',
    method: 'GET'
  })
}
export function selectNumberCatCount() {
  return request({
    url: '/v1/memberCat/selectNumberCatCount',
    method: 'GET'
  })
}
